home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / amos / AMOSList-0998.lzh / AMOSLIST / 000011_bounce-amos-li…net@onelist.com_Tue Sep 1 18:35:54 1998.msg < prev    next >
Text File  |  1998-10-01  |  4KB  |  125 lines

  1. >From bounce-amos-list--871-mcox=access.digex.net@onelist.com  Tue Sep  1 18:35:54 1998
  2. Received: from onelist.com (pop.onelist.com [209.207.164.13])
  3.     by pony-1.mail.digex.net (8.8.8/8.8.8) with SMTP id SAA14311
  4.     for <mcox@access.digex.net>; Tue, 1 Sep 1998 18:35:52 -0400 (EDT)
  5. Received: (qmail 747 invoked by alias); 1 Sep 1998 22:39:26 -0000
  6. Received: (qmail 576 invoked from network); 1 Sep 1998 22:39:20 -0000
  7. Received: from unknown (HELO neodymium.btinternet.com) (194.73.73.83) by pop.onelist.com with SMTP; 1 Sep 1998 22:39:20 -0000
  8. Received: from np5gt [195.171.236.153]  by neodymium.btinternet.com with smtp (Exim 1.70 #1) id 0zDz0R-0001p3-00; Tue, 1 Sep 1998 23:34:32 +0100
  9. Message-ID: <002101bdd5f8$c052cee0$99ecabc3@np5gt>
  10. From: "John Glanville" <John.Glanville@btinternet.com>
  11. To: <amos-list@onelist.com>
  12. Date: Tue, 1 Sep 1998 23:23:44 +0100
  13. X-Priority: 3
  14. X-MSMail-Priority: Normal
  15. X-Mailer: Microsoft Outlook Express 4.72.3110.1
  16. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  17. Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com
  18. Delivered-To: mailing list amos-list@onelist.com
  19. Precedence: bulk
  20. Reply-to: amos-list@onelist.com
  21. Mime-Version: 1.0
  22. Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01BDD5FF.8FE70260"
  23. Subject: [amos-list] Hey! Ne1 Like Joysticks?
  24. Status: O
  25. X-Status: 
  26.  
  27. From: "John Glanville" <John.Glanville@btinternet.com>
  28.  
  29. This is a multi-part message in MIME format.
  30.  
  31. ------=_NextPart_000_0008_01BDD5FF.8FE70260
  32. Content-Type: text/plain;
  33.     charset="iso-8859-1"
  34. Content-Transfer-Encoding: quoted-printable
  35.  
  36. Hey! Look! At this=85 Ne1 want a piece of code that turns the joystick =
  37. input 2 + or -..
  38.  
  39. Eg.
  40.  
  41. J=3DJoy(1)    ;J=3D2 ; Joystick is Down!
  42.  
  43. K=3DJ-2       ;k=3D0
  44.  
  45. P#=3DJ/4.0    ;P#=3D0.5
  46.  
  47. P=3DP#        ;P=3D0
  48.  
  49. I=3DSgn(J)    ;I=3D1
  50.  
  51. if P#=3DP     ;This isn=92t true 0.5<>0
  52.  
  53. X=3DSgn(J-6)*I
  54.  
  55. End If
  56.  
  57. If P=3D0      ;This is true
  58.  
  59. Y=3DI*(K+K+1) ;Y=3D1
  60.  
  61. End If=20
  62.  
  63. Say you push the joystick up it returns y=3D-1 X=3D0!
  64.  
  65. If You Push Joystick Left then X=3D-1 Y=3D0
  66.  
  67. If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1
  68.  
  69. You Could use this in a game!! Something similar 2 tron!
  70.  
  71. Where U only need the direction in +1=92s or =961=92s!
  72.  
  73. I=92ve used it and found it gets rid of annoying and slow If =
  74. statements!!!!
  75.  
  76. Or U could just Delete this as it is a pointless waste of Virtual Paper! =
  77. Unless You have printed it in which case! Help!
  78.  
  79.  
  80. ------=_NextPart_000_0008_01BDD5FF.8FE70260
  81. Content-Type: text/html;
  82.     charset="iso-8859-1"
  83. Content-Transfer-Encoding: quoted-printable
  84.  
  85. <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  86. <HTML>
  87. <HEAD>
  88.  
  89. <META content=3Dtext/html;charset=3Diso-8859-1 =
  90. http-equiv=3DContent-Type>
  91. <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
  92. </HEAD>
  93. <BODY bgColor=3D#ffffff>
  94. <DIV><B><FONT face=3D"Courier New">
  95. <P>Hey! Look! At this… Ne1 want a piece of code that turns the =
  96. joystick=20
  97. input 2 + or -..</P>
  98. <P>Eg.</P>
  99. <P>J=3DJoy(1)    ;J=3D2 ; Joystick is Down!</P>
  100. <P>K=3DJ-2       ;k=3D0</P>
  101. <P>P#=3DJ/4.0    ;P#=3D0.5</P>
  102. <P>P=3DP#        ;P=3D0</P>
  103. <P>I=3DSgn(J)    ;I=3D1</P>
  104. <P>if P#=3DP     ;This isn’t true =
  105. 0.5<>0</P>
  106. <P>X=3DSgn(J-6)*I</P>
  107. <P>End If</P>
  108. <P>If P=3D0      ;This is true</P>
  109. <P>Y=3DI*(K+K+1) ;Y=3D1</P>
  110. <P>End If </P>
  111. <P>Say you push the joystick up it returns y=3D-1 X=3D0!</P>
  112. <P>If You Push Joystick Left then X=3D-1 Y=3D0</P>
  113. <P>If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1</P>
  114. <P>You Could use this in a game!! Something similar 2 tron!</P>
  115. <P>Where U only need the direction in +1’s or =
  116. –1’s!</P>
  117. <P>I’ve used it and found it gets rid of annoying and slow If=20
  118. statements!!!!</P>
  119. <P>Or U could just Delete this as it is a pointless waste of Virtual =
  120. Paper!=20
  121. Unless You have printed it in which case!=20
  122. Help!</P></B></FONT></DIV></BODY></HTML>
  123.  
  124. ------=_NextPart_000_0008_01BDD5FF.8FE70260--
  125.